package pl.un4giv3n.mightvsmagic.utils;

import pl.un4giv3n.mightvsmagic.entity.ActivityDetails;
import pl.un4giv3n.mightvsmagic.entity.ActivityType;
import pl.un4giv3n.mightvsmagic.entity.UserActivity;

public final class ActivityLogUtil {

	private ActivityLogUtil(){}
	
	public static UserActivity createActivity(ActivityType type, Long userId, ActivityDetails details){
		return new UserActivity(type, System.currentTimeMillis(), userId, details);
	}
	public static UserActivity createActivity(ActivityType type, Long userId, String desc){
		return new UserActivity(type, System.currentTimeMillis(), userId, new ActivityDetails(desc, null));
	}
	public static UserActivity createActivity(ActivityType type, Long userId){
		return new UserActivity(type, System.currentTimeMillis(), userId, null);
	}
}
